package 剑指offer_leetcode;

/**
 * JZ27二叉树的镜像
 */
public class 剑指Offer27_二叉树的镜像 {
    public TreeNode mirrorTree(TreeNode root) {
        if(root == null)
            return null;
        TreeNode left = mirrorTree(root.left);
        TreeNode right = mirrorTree(root.right);
        root.left = right;
        root.right = left;
        return root;
    }
}
